package com.wish.wishfinancial_service.service.feignservice;

import dto.houseForeclosureDto.RequestSearchSfsDto;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Service;
import vo.ResultEntity;

@Service
public class HouseServiceFeignError implements FallbackFactory<HouseServiceFeign> {


    @Override
    public HouseServiceFeign create(Throwable cause) {
        cause.printStackTrace();
        return new HouseServiceFeign() {
            @Override
            public ResultEntity searchSfContractListXy(RequestSearchSfsDto requestSearchSfsDto) {
                return ResultEntity.error();
            }

            @Override
            public String getSerialNumber(String tpye) {
                return null;
            }
        };
    }
}
